# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo do
  @moduledoc """


  ## Attributes

  *   `cardBarcodeSectionDetails` (*type:* `GoogleApi.WalletObjects.V1.Model.CardBarcodeSectionDetails.t`, *default:* `nil`) - Specifies extra information to be displayed above and below the barcode.
  *   `cardTemplateOverride` (*type:* `GoogleApi.WalletObjects.V1.Model.CardTemplateOverride.t`, *default:* `nil`) - Override for the card view.
  *   `detailsTemplateOverride` (*type:* `GoogleApi.WalletObjects.V1.Model.DetailsTemplateOverride.t`, *default:* `nil`) - Override for the details view (beneath the card view).
  *   `listTemplateOverride` (*type:* `GoogleApi.WalletObjects.V1.Model.ListTemplateOverride.t`, *default:* `nil`) - Override for the passes list view.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :cardBarcodeSectionDetails =>
            GoogleApi.WalletObjects.V1.Model.CardBarcodeSectionDetails.t() | nil,
          :cardTemplateOverride =>
            GoogleApi.WalletObjects.V1.Model.CardTemplateOverride.t() | nil,
          :detailsTemplateOverride =>
            GoogleApi.WalletObjects.V1.Model.DetailsTemplateOverride.t() | nil,
          :listTemplateOverride => GoogleApi.WalletObjects.V1.Model.ListTemplateOverride.t() | nil
        }

  field(:cardBarcodeSectionDetails, as: GoogleApi.WalletObjects.V1.Model.CardBarcodeSectionDetails)

  field(:cardTemplateOverride, as: GoogleApi.WalletObjects.V1.Model.CardTemplateOverride)
  field(:detailsTemplateOverride, as: GoogleApi.WalletObjects.V1.Model.DetailsTemplateOverride)
  field(:listTemplateOverride, as: GoogleApi.WalletObjects.V1.Model.ListTemplateOverride)
end

defimpl Poison.Decoder, for: GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo do
  def decode(value, options) do
    GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
